﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Register.Model;
using Register.IDAL;
using Register.DALFactory;
namespace Register.BLL
{
  public   class UserRoleBLL
    {
      private static String typeNameKey = "IUserRoleDALKey";
        public static int  Add(UserRole model)
        {
    
           IUserRole iuserrole = DALFactory<IUserRole>.Create(typeNameKey);
        return    iuserrole.Add(model);
        }

        public static bool Delete(string Role_ID, string Administrator_ID)
        {
            IUserRole iuserrole = DALFactory<IUserRole>.Create(typeNameKey);
          return  iuserrole.Delete(Role_ID, Administrator_ID); 
        }
        public static List<UserRole> GetList(string Administrator_ID)
        {
            IUserRole iuserrole = DALFactory<IUserRole>.Create(typeNameKey);
            return iuserrole.GetList(Administrator_ID);
        }
    }
}
